package com.baike.em;

import java.io.Serializable;

public enum ConstantEnum implements Serializable {
    SUCCESS(2000,"操作成功!"),
    INSERT_SUCCESS(29001,"增加成功"),
    UPDATE_SUCCESS(29002,"修改成功"),
    CODE_SUCCESS(29003,"验证码发送成功"),
    ZHUCE_SUCCESS(29004,"注册成功"),
    ERROR(3000,"内部出错!请联系工作人员"),
    REPETITION(4000,"用户ID已被注册!"),
    USER_EXIST(4000,"用户已被注册!"),
    UNKNOWN(5000,"账号不存在"),
    INCORRECT(6000,"密码错误"),
    UNREVIEWED(7000,"账号未审核!"),
    VERIFICATION(8000,"验证码错误!"),
    CODE_ERROR(10003,"验证码不一致"),
    PWD_ZHANGHAO_ERROR(10004,"账号密码不一致"),
    PHONEERROER(9000,"请输入正确的手机号!"),
    NO_LOGIN(10000,"未登录!"),
    FALL_BACK(11000,"已熔断!"),
    TOO_MANY(12000,"请求过多,请稍后再试~"),

    PAY_SUCCESS(12000,"支付成功~"),
    PAY_FAILURE(12000,"支付失败~"),
    AGTEWAY_PROXY_ERROR(13000,"无法连接!请稍后重试~"),
    ALREADY_ADDED_TO_SHOPPING_CART(15000,"该课程已加入购物车~"),
    NULL_DATA_PARAMETER(14000,"参数为空"),
    NULL_DATA(15000,"查询数据为空"),
    TOO_MANY_REQUESTS(30003, "请求太多,请重试"),
    REGISTRATION_FAILED(14001,"注册失败~");

    private Integer code;
    private String message;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    ConstantEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    ConstantEnum() {
    }
}
